package org.samcolon.dubbo.demo1.service.impl;

import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.annotation.Reference;
import org.samcolon.dubbo.demo1.api.service.DemoDubboService;
import org.samcolon.dubbo.demo1.service.DemoService;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @author: Sam.zhang
 * @date: 2022/4/5 - 20:57
 */
@Service
public class DemoServiceImpl implements DemoService {
    @DubboReference
    private DemoDubboService demoDubboService;

    @Override
    public String demo() {
        return demoDubboService.demo("张三丰");
    }
}
